<%--
  Created by IntelliJ IDEA.
  User: Alex
  Date: 4/27/11
  Time: 5:00 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>
      <link rel="stylesheet" type="text/css" href="<g:resource dir='css' file='filmring.css' />"/>
        <g:javascript library="jquery" plugin="jquery" />
        <script type="text/javascript" src="<g:resource dir='js' file='twitter.js'/>"></script>
        <script type="text/javascript" src="<g:resource dir='js' file='ratings.js'/>"></script>
        <script type="text/javascript">
            $().ready(function(){
                queryTwitter("${actor.name.encodeAsURL()}");
                preloadimages();
                 $(".rating").each(function(index){
                    registerRatingsListeners2(index,($(".rating input")[index]).value,${session.user},"#"+$(this).attr('id'));
                });
            });
        </script>
      <title>Film Ring Actor: ${actor.name}</title>
  </head>
  <body>
        <g:render template="/templates/topbar" />
        <div class="clear"></div>
        <g:render template="/templates/sidebar" model="${['user':user]}"/>
        <g:render template="/templates/twitterfeed" model="${[query:actor.name]}" />
        <div class="clear"></div>
        <g:render template="/templates/movielist" model="${[ratings:ratings, id:'']}" />
  </body>
</html>